/**
 * 
 */
package grimbo.goodwinfooty.service.model;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class PlayerPayment implements Serializable {
    private static final long serialVersionUID = 5762928083100878611L;
    private int payment;
    private Player player;
    private boolean charged;

    public int getPayment() {
        return payment;
    }

    public Player getPlayer() {
        return player;
    }

    public void setPayment(int payment) {
        this.payment = payment;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }

    public void setCharged(boolean charged) {
        this.charged = charged;
    }

    public boolean isCharged() {
        return charged;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("player", player.getName()).append("payment",
                payment).append("charged", charged).toString();
    }
}